package com.ruoyi.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.business.domain.TWorkInfo;
import com.ruoyi.business.vo.TWorkInfoVo;
import com.ruoyi.business.mapper.TWorkInfoMapper;
import com.ruoyi.business.service.ITWorkInfoService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 常见问题Service业务层处理
 *
 * @author Tellsea
 * @date 2024-01-17
 */
@Service
public class TWorkInfoServiceImpl extends ServiceImpl<TWorkInfoMapper, TWorkInfo> implements ITWorkInfoService {

    @Override
    public TableDataInfo<TWorkInfoVo> queryList(TWorkInfoVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<TWorkInfoVo> queryAll(TWorkInfoVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public TWorkInfoVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
